update application model when user logs in