still has a bug related with login