added errors when login is not correct