code validation
valid code and signin