Fixed errors resulting in no search results, a potential bug in storage of files and limited the changePasswordForm route to authorised users only