add login,register,user block, upload etc function.