add priority function for videos
fixed signup bug