Created getEmail method in BaseController class