creates working logout button
validates  pswd, email, name