Added JSON validation and made sign in page more Mobile friendly