removed node_static as unnecessary
fixed bug in handling login when going to any route, also improved error handling of password reset