added users and microposts functions