Correct tables creations and register function within login block