return json web token when users successfully logged in.