login: Fix CSRF fail, add shake effect on authentication fail #3955 (minor fix to SQL query generated)