added backed code for login, logout and generate access token for the user