Testing login and getting access token