adjustment on login validation function coding spaces or norms