Some minor bugfixes

Login failed bug and upload default profile image if no one is selected.