Added login authorization and methods