Made display errors when login and signup. But method has to be changed