#17 Added login re-direct if failure