new login form and fixed bug with roles