Showing the login-form only if we use https

The login form should appear only when the https is enable so we wont send the user name and the password without encryption ...