fixed bug

flash messages updating/creating locations
bug fixed: user logged in after register