Common class for authentication for User and Supplier