Authentication is added

Add functions to authenticate when the user login