fixed issue where user is not being added to a new meal, fixed issue where it redirects you back to login when you go to main