Added register/login error success triggers, stylistic changes