Correct usage of employee::getbyemail; added clear smarty cache function