Added a getCurrentUser function.