can now use all users for login. Still few bugs to fix