Require the correct user to edit profiles
Remove redundent code
Forward user after loggin in