added login/register and file upload