This looks like it would work. Do you see any errors?
Are you sure you are entering a username and password that exists in the database? What is the url after you try to log in? Maybe the login is working and the issue is on the page that you access not letting you in even when the login was successful?