fixed problem with the password and sqlite3 and added a test for the profile name and also for code 404