Fixed authorization issues for ownershipf of offices.
Fixed more auth details, reroute to login or signup if invalid action is taken by anonymous user
fixed login error redirect