fixed unhgandled exception in login, prevent unhandled exceptions from restarting app
fixed crashes in site caused by auth attribute and login referal