fix redirect login
refatoring
invitation edit
finished