sqlmap -u <target> --forms --batch --crawl 1
Of course, you can crawl deeper if you want, but if you know where the login form is, then no need to waste time. This is almost always much more convenient than digging through the form code, and using --data with sqlmap. Enjoy!