Add checks to ensure SSL for login pages

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Allow authentication via SSL only

Signed-off-by: Shitiz Garg <mail@dragooon.net>