Worked on most of the authentication stuff