Implemented the functionality of checking if current user is admin;