added attr_accessible user_id to application model