finished up authentication system