[ADD] condition in register & login post