add login/register and file upload functions