Assigning time to 'time' variable in UsersController