added user_id to migration as well as relationship belong_to user on location model. Fixed some redirects