Generating login for user if needed