add register func (not fin, need confirm pass)