added some functions for getting users and started making login function