fixed login. server now returns response codes that is handled in client