added getProfile for librarians and check isset user