Fix login pages and redirect to meds