added error codes to the signup and login error callback functions