modified login,completed upload module