Link url regex optimized, register checks for duplicated username & both passwords match