Changes made by Ivan Rusekov (rusekov@gmail.com).
Added Connection check in the log in page