removed success notifications, added support for json register and login