User registration works fine.
Login implemented but doesn't work correctly.