Fix a function to get current_user