change console.log message for login error
initial register function