added https checks (commented out)
login working locally