Cleaned a lot, signup and login are correctly handled, added policies for logged pages