login form on index now working