Added REST API for User login, register and fetching