getCurrentUser method added

Added the method getCurrentUser in User class