Added redirect to last visted page after login