added new authentication

full functionalities of username and password