written get and post methods for Users class