registration & login first phase