added authenticate method for users and companies