Added check for submit login for to ssl