Creating check for registered user