Database fully working, login checking for error