Fixed session login issue on invalid password