def register_account(client, user, pword, rem=True, captcha=None):
    """
    Create a new Reddit account:
    log in with user_login()
    once logged in, you can register new accounts every five minutes without entering captcha.
    user: the username of the new account you wish to create
    pword: a password for the account
    rem: should the session cookie last beyond the current browser session. default TRUE

    > new_account = register_account(client, 'foo_user_new', 'a_password')
    """
    user_information = {'user': user, 'passwd': pword, 'passwd2': pword,
        'captcha': captcha, 'rem': rem, 'api_type': 'json'}
    response = client.post('http://www.reddit.com/api/register', data=
        user_information)
    if response.json()['json']['errors']:
        error_dict = response.json()['json']['errors']
        raise Exception('Error: ' + error_dict[0][0])
    return response
