implemented redirect from login [Important]