Fixed problem when get_password decorator destroys function it decorates