built initial session api for current_user