Add build_homeserver_url function to check if homeserver string starts with http:// or https://, if not https:// is added, and parse it as Url. It is used both to check the url to enable the Next action and to login the user.