PHP - professional login and checking permission class