modified Model
added refresh token implementation