Add port to redirects to prevent redirects to HTTPS, port 80
Consolidate login helper methods