Basic checkings into database if user already exists