Working on authenticating type of user