pin validation added