Fix profile password verification

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Use UTF-8 safe strtolower for lowercasing usernames on login

Should potentially fix #1538

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