Hacky version of user authentication