fixed bugs in photo uploads and signup