Fixed homepage redirect & login issues