Created full-featured authentication system