Added portrait functionality to account creation
added redirect for account view for logged in users