page redirect and user login issues fixed